<?php
require_once 'Sabai/Model/PageNavigatorRemote.php';

class Sabai_Template_Default_Helper_PageNavRemote extends Sabai_Template_Default_Helper
{
    function execute($update, &$pages, $currentPage, $linkUrl = array(), $ajaxUrl = null, $pageVar = 'page', $pageSummaryText = 'Page %1$d of %2$d')
    {
        $nav =& new Sabai_Model_PageNavigatorRemote($update, $pages, $currentPage, $linkUrl, $ajaxUrl, $pageVar, $pageSummaryText);
        return $nav->process();
    }
}